.class public Lcom/htc/android/footprints/utils/SettingInfo;
.super Ljava/lang/Object;
.source "SettingInfo.java"


# static fields
.field private static instance:Lcom/htc/android/footprints/utils/SettingInfo;


# instance fields
.field private currentSerialNumber:I

.field private defSort:Ljava/lang/String;

.field private firstLaunchFlag:Z

.field private firstRetrieveAddressFlag:Z

.field private listSort:Ljava/lang/String;

.field private mContext:Landroid/content/Context;

.field private mSettingDb:Landroid/content/SharedPreferences;

.field public retrieveAddress:Z

.field public showConnectionFailedAlert:Z

.field public showLocationDisabledAlert:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 11
    const/4 v0, 0x0

    sput-object v0, Lcom/htc/android/footprints/utils/SettingInfo;->instance:Lcom/htc/android/footprints/utils/SettingInfo;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter "context"

    .prologue
    const/4 v0, 0x1

    .line 25
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 15
    iput-boolean v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->retrieveAddress:Z

    .line 16
    iput-boolean v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->showLocationDisabledAlert:Z

    .line 17
    iput-boolean v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->showConnectionFailedAlert:Z

    .line 18
    iput-boolean v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstLaunchFlag:Z

    .line 20
    iput-boolean v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstRetrieveAddressFlag:Z

    .line 21
    const/4 v0, 0x0

    iput v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->currentSerialNumber:I

    .line 23
    const-string v0, "create_time desc"

    iput-object v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->defSort:Ljava/lang/String;

    .line 26
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/utils/SettingInfo;->init(Landroid/content/Context;)V

    .line 27
    return-void
.end method

.method public static clear()V
    .locals 1

    .prologue
    .line 37
    const/4 v0, 0x0

    sput-object v0, Lcom/htc/android/footprints/utils/SettingInfo;->instance:Lcom/htc/android/footprints/utils/SettingInfo;

    .line 38
    return-void
.end method

.method public static getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;
    .locals 1
    .parameter "context"

    .prologue
    .line 30
    sget-object v0, Lcom/htc/android/footprints/utils/SettingInfo;->instance:Lcom/htc/android/footprints/utils/SettingInfo;

    if-nez v0, :cond_0

    .line 31
    new-instance v0, Lcom/htc/android/footprints/utils/SettingInfo;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/utils/SettingInfo;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/htc/android/footprints/utils/SettingInfo;->instance:Lcom/htc/android/footprints/utils/SettingInfo;

    .line 33
    :cond_0
    sget-object v0, Lcom/htc/android/footprints/utils/SettingInfo;->instance:Lcom/htc/android/footprints/utils/SettingInfo;

    return-object v0
.end method

.method private init(Landroid/content/Context;)V
    .locals 8
    .parameter "context"

    .prologue
    const/4 v3, 0x1

    const-string v7, "pref_show_location_disabled_alert"

    const-string v6, "pref_show_connection_failed_alert"

    const-string v5, "pref_retrieve_address"

    const-string v4, "pref_list_sort"

    .line 41
    iput-object p1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    .line 42
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v1, :cond_0

    .line 43
    const-string v1, "FootprintsSetting"

    const/4 v2, 0x2

    invoke-virtual {p1, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 46
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v1, :cond_6

    .line 48
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 49
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_retrieve_address"

    invoke-interface {v1, v5}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 50
    const-string v1, "pref_retrieve_address"

    invoke-interface {v0, v5, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 51
    :cond_1
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_show_location_disabled_alert"

    invoke-interface {v1, v7}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 52
    const-string v1, "pref_show_location_disabled_alert"

    invoke-interface {v0, v7, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 53
    :cond_2
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_show_connection_failed_alert"

    invoke-interface {v1, v6}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_3

    .line 54
    const-string v1, "pref_show_connection_failed_alert"

    invoke-interface {v0, v6, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 55
    :cond_3
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_serial_number"

    invoke-interface {v1, v2}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_4

    .line 56
    const-string v1, "pref_serial_number"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 57
    :cond_4
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_list_sort"

    invoke-interface {v1, v4}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_5

    .line 58
    const-string v1, "pref_list_sort"

    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->defSort:Ljava/lang/String;

    invoke-interface {v0, v4, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 59
    :cond_5
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 60
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_retrieve_address"

    invoke-interface {v1, v5, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->retrieveAddress:Z

    .line 61
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_show_location_disabled_alert"

    invoke-interface {v1, v7, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->showLocationDisabledAlert:Z

    .line 62
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_show_connection_failed_alert"

    invoke-interface {v1, v6, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v1

    iput-boolean v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->showConnectionFailedAlert:Z

    .line 63
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v2, "pref_list_sort"

    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->defSort:Ljava/lang/String;

    invoke-interface {v1, v4, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->listSort:Ljava/lang/String;

    .line 65
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_6
    return-void
.end method


# virtual methods
.method public getCurrentSerialNumber()I
    .locals 1

    .prologue
    .line 179
    iget v0, p0, Lcom/htc/android/footprints/utils/SettingInfo;->currentSerialNumber:I

    return v0
.end method

.method public getNewSerialNumber()I
    .locals 6

    .prologue
    const-string v5, "pref_serial_number"

    .line 183
    const/4 v1, 0x0

    .line 186
    .local v1, newSN:I
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v2, :cond_0

    .line 187
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v3, "FootprintsSetting"

    const/4 v4, 0x2

    invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    iput-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 190
    :cond_0
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v2, :cond_1

    .line 191
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_serial_number"

    invoke-interface {v2, v5}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 192
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 193
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_serial_number"

    const/4 v3, 0x0

    invoke-interface {v2, v5, v3}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    .line 194
    add-int/lit8 v1, v1, 0x1

    .line 195
    const-string v2, "pref_serial_number"

    invoke-interface {v0, v5, v1}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 196
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 198
    iput v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->currentSerialNumber:I

    .line 202
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    return v1
.end method

.method public getSortString()Ljava/lang/String;
    .locals 5

    .prologue
    .line 233
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->defSort:Ljava/lang/String;

    .line 236
    .local v1, sort:Ljava/lang/String;
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v2, :cond_0

    .line 237
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v3, "FootprintsSetting"

    const/4 v4, 0x2

    invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    iput-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 240
    :cond_0
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v2, :cond_1

    .line 241
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_serial_number"

    invoke-interface {v2, v3}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 242
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 243
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_list_sort"

    iget-object v4, p0, Lcom/htc/android/footprints/utils/SettingInfo;->defSort:Ljava/lang/String;

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 244
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 248
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    return-object v1
.end method

.method public isFirstLaunch()Z
    .locals 6

    .prologue
    const-string v5, "pref_is_first_launch"

    .line 68
    const/4 v1, 0x0

    .line 69
    .local v1, result:Z
    iget-boolean v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstLaunchFlag:Z

    if-eqz v2, :cond_1

    .line 71
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v2, :cond_0

    .line 72
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v3, "FootprintsSetting"

    const/4 v4, 0x2

    invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    iput-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 75
    :cond_0
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v2, :cond_1

    .line 76
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_is_first_launch"

    invoke-interface {v2, v5}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 78
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 79
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v2, "pref_is_first_launch"

    const/4 v2, 0x1

    invoke-interface {v0, v5, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 80
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 81
    const/4 v1, 0x1

    .line 88
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    :goto_0
    return v1

    .line 83
    :cond_2
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_is_first_launch"

    const/4 v3, 0x0

    invoke-interface {v2, v5, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstLaunchFlag:Z

    .line 84
    iget-boolean v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstLaunchFlag:Z

    goto :goto_0
.end method

.method public isFirstRetrieveAddress()Z
    .locals 6

    .prologue
    const-string v5, "pref_is_first_retrieve_address"

    .line 142
    const/4 v1, 0x0

    .line 143
    .local v1, result:Z
    iget-boolean v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstRetrieveAddressFlag:Z

    if-eqz v2, :cond_1

    .line 145
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v2, :cond_0

    .line 146
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v3, "FootprintsSetting"

    const/4 v4, 0x2

    invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    iput-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 149
    :cond_0
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v2, :cond_1

    .line 150
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_is_first_retrieve_address"

    invoke-interface {v2, v5}, Landroid/content/SharedPreferences;->contains(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 152
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 153
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v2, "pref_is_first_retrieve_address"

    const/4 v2, 0x1

    invoke-interface {v0, v5, v2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 154
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 155
    const/4 v1, 0x1

    .line 162
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    :goto_0
    return v1

    .line 157
    :cond_2
    iget-object v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    const-string v3, "pref_is_first_retrieve_address"

    const/4 v3, 0x0

    invoke-interface {v2, v5, v3}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstRetrieveAddressFlag:Z

    .line 158
    iget-boolean v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstRetrieveAddressFlag:Z

    goto :goto_0
.end method

.method public resetSerialNumber()V
    .locals 4

    .prologue
    .line 207
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v1, :cond_0

    .line 208
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v2, "FootprintsSetting"

    const/4 v3, 0x2

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 211
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v1, :cond_1

    .line 212
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 213
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v1, "pref_serial_number"

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putInt(Ljava/lang/String;I)Landroid/content/SharedPreferences$Editor;

    .line 214
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 216
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    return-void
.end method

.method public setFirstLaunch(Z)V
    .locals 4
    .parameter "value"

    .prologue
    .line 92
    iput-boolean p1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstLaunchFlag:Z

    .line 93
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v1, :cond_0

    .line 94
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v2, "FootprintsSetting"

    const/4 v3, 0x2

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 96
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v1, :cond_1

    .line 98
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 99
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v1, "pref_is_first_launch"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 100
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 102
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    return-void
.end method

.method public setFirstRetrieveAddress(Z)V
    .locals 4
    .parameter "value"

    .prologue
    .line 166
    iput-boolean p1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->firstRetrieveAddressFlag:Z

    .line 167
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v1, :cond_0

    .line 168
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v2, "FootprintsSetting"

    const/4 v3, 0x2

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 170
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v1, :cond_1

    .line 172
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 173
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v1, "pref_is_first_retrieve_address"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 174
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 176
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    return-void
.end method

.method public setSortString(Ljava/lang/String;)V
    .locals 4
    .parameter "sort"

    .prologue
    .line 219
    if-eqz p1, :cond_1

    .line 220
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-nez v1, :cond_0

    .line 221
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mContext:Landroid/content/Context;

    const-string v2, "FootprintsSetting"

    const/4 v3, 0x2

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    .line 224
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    if-eqz v1, :cond_1

    .line 225
    iget-object v1, p0, Lcom/htc/android/footprints/utils/SettingInfo;->mSettingDb:Landroid/content/SharedPreferences;

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 226
    .local v0, editor:Landroid/content/SharedPreferences$Editor;
    const-string v1, "pref_list_sort"

    invoke-interface {v0, v1, p1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    .line 227
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 230
    .end local v0           #editor:Landroid/content/SharedPreferences$Editor;
    :cond_1
    return-void
.end method
